﻿using System;
using OOXMLGenerator.Generator.Excel;

namespace OOXMLGenerator.DataStructure
{
    internal class Item
    {
        public object Value { get; set; }
        public Type Type { get; set; }
        public ExcelFormat Format { get; set; }

        public Item() {
            Format = new ExcelFormat();
            Format.ApplyFont = true;
            Format.Font = "Britannic Bold";
            Format.FontColor = "000000";
            Format.FontSize = 12D;
            Format.ApplyBackground = true;
            Format.BackgroundColor = "FFFFFF";
            Format.ApplyAlignment = true;
            Format.AlignmentWrapText = true;
            Format.HorizAlignment = DocumentFormat.OpenXml.Spreadsheet.HorizontalAlignmentValues.Right;
            Format.MergeCells = false;
            Format.ApplyRowHeight = true;
            Format.RowHeight = 20.75D;
        }

        public Item(object value, Type type, ExcelFormat format)
        {
            Value = value;
            Type = type;
            Format = format;
        }
        public Item(Item item)
        {
            Value = item.Value;
            Type = item.Type;
            Format = item.Format;
        }
    }
}
